









<table width="100%" bgcolor="#b0c4da"><tr colspan="2"><td>Manual Pages</td></tr>
<tr><td><h3>mdoc(5)</h3></td><td align="right"></td></tr></table>
<h2>NAME</h2><blockquote>
mdoc - Mono Documentation XML Format
</blockquote><h2>DESCRIPTION</h2><blockquote>
The assorted Mono documentation programs generate or manipulate XML files 
following the mono documentation schema:
<dl><dt>
<i>mdoc update</i></dt><dd>
Creates or updates mono documentation XML for a set of assemblies.
</dd><dt>
<i>mdoc validate</i></dt><dd>
Validates the mono documentation XML against the mono documentation XML
schema.
</dd><dt>
<i>mdoc assemble</i></dt><dd>
Converts the mono documentation XML within a directory structure into a set 
of files for use with <b>monodoc</b>(1).
</dd><dt>
<i>mdoc export-html</i></dt><dd>
Converts the mono documentation XML within a directory structure into a set 
of HTML files that can be viewed with a web browser.
</dd></dl><p>
All of these tools (and more) use the common XML schema described in this man 
page.
</p></blockquote><h2>FILE/DIRECTORY STRUCTURE</h2><blockquote>
There are three sets of Mono documentation XML files: 
<dl><dt>
<b>*</b></dt><dd>
<b>index.xml:</b>
contains a list of all assemblies within the containing directory, and all
types and namespaces within those assemblies.
</dd><dt>
<b>*</b></dt><dd>
<b>ns-*.xml:</b>
There is one ns-*.xml file for each namespace within the assembly; these 
files are siblings to 
<i>index.xml</i>
&.
<p>
Examples of
<i>ns-*.xml</i>
files include: <i>ns-System.xml</i>, <i>ns-System.Collections.xml</i>, and
<i>ns-.xml</i> (for the root namespace, though it is recommended to NOT place 
types into the root namespace, as <b>monodoc</b>(1) doesn't display them).
</p><p>
The 
<i>ns-*.xml</i>
files contain per-namespace documentation.
</p></dd><dt>
<b>*</b></dt><dd>
<b>NamespaceName/TypeName.xml:</b>
These files are within a dotted
<i>NamespaceName</i>
directory, and 
<i>TypeName</i>
is the name of the type.
<p>
Examples include:
<i>RootType.xml</i>
(if the type has no namespace),
<i>System/String.xml</i>,
<i>System.Collections/IEnumerable.xml</i>, and
<i>System.Collections.Generic/List`1+Enumerator.xml</i>
(the 
<i>`1</i>
is the number of generic type parameters the type accepts, and everything
after the 
<i>+</i>
is a nested type).
</p></dd></dl><p>
Thus, typical directory contents would resemble:

</p><pre>

    index.xml
    ns-System.xml
    ns-System.Collections.Generic.xml
    System/String.xml
    System.Collections.Generic/List`1.xml
</pre>
</blockquote><h2>DOCUMENTATION FORMAT</h2><blockquote>
<h3><b>index.xml File Format</b></h3>
<p>
The 
<i>index.xml</i>
file contains a list of the assemblies nested under the directory containing
<i>index.xml</i>
and all namespaces and types within those assemblies.  It looks something like
this:

</p><pre>

    &lt;Overview&gt;
      &lt;Assemblies&gt;
        &lt;Assembly Name="mscorlib" Version="2.0.0.0" /&gt;
        &lt;!-- other &lt;Assembly/&gt; elements... --&gt;
      &lt;/Assemblies&gt;
      &lt;Remarks&gt;To be added.&lt;/Remarks&gt;
      &lt;Copyright&gt;To be added.&lt;/Copyright&gt;
      &lt;Types&gt;
        &lt;Namespace Name="System"&gt;
          &lt;Type Name="String" /&gt;
          &lt;!-- Other &lt;Type/&gt; elements --&gt;
        &lt;/Namespace&gt;
        &lt;Namespace Name="System.Collections.Generic"&gt;
          &lt;Type Name="List`1" DisplayName="List&amp;lt;T&amp;gt;" /&gt;
          &lt;!-- Other &lt;Type/&gt; elements --&gt;
        &lt;/Namespace&gt;
        &lt;!-- other &lt;Namespace/&gt; elements --&gt;
      &lt;/Types&gt;
      &lt;Title&gt;DocTest&lt;/Title&gt;
    &lt;/Overview&gt;
</pre>

Most of this is maintained automatically, in particular the
<i>/Overview/Assemblies</i>
and
<i>/Overview/Types</i>
elements.
<p>
The 
<i>//Namespace/@Name</i>
attribute corresponds to a directory which contains files named
<i>//Type/@Name</i>.xml, while the <i>//Type/@DisplayName</i> attribute contains
a C# type name (if <i>//Type/@DisplayName</i> isn't found, then
<i>//Type/@Name</i> is used as the display name).  There should also be a
<i>ns-[//Namespace/@Name].xml</i> file.
</p><p>
There are three elements of interest to authors: 
<i>/Overview/Remarks</i>, <i>/Overview/Copyright</i>, and
<i>/Overview/Title</i>, which contain assembly-level documentation.
These elements can contain any of the following XML elements (documented in
the <b>Documentation XML Elements</b> section): 
<i>block</i>, 
<i>code</i>, 
<i>example</i>, 
<i>list</i>, 
<i>para</i>, 
<i>paramref</i>, 
<i>typeparamref</i>, 
<i>see</i>, and
<i>ul</i>.
<h3><b>ns-*.xml File Format</b></h3>
The <i>ns-*.xml</i> files contain namespace documentation:

</p><pre>

    &lt;Namespace Name="System"&gt;
      &lt;Docs&gt;
        &lt;summary&gt;To be added.&lt;/summary&gt;
        &lt;remarks&gt;To be added.&lt;/remarks&gt;
      &lt;/Docs&gt;
    &lt;/Namespace&gt;
</pre>

The <i>/Namespace/Docs/summary</i> and <i>/Namespace/Docs/remarks</i> elements
should contain namespace documentation.
<p>
The <i>remarks</i> and <i>summary</i> elements are documented in the 
<b>Documentation XML Elements</b> section.
<h3><b>NamespaceName/TypeName.xml File Format</b></h3>
The
<i>mono documentation format</i>
is similar to the Ecma documentation format, as described 
in ECMA-335 3rd Edition, Partition IV, Chapter 7.
The principal difference from the ECMA format is that each type gets its own
file, within a directory identical to the namespace of the type.  There is a
lot of information that is maintained automatically by <b>mdoc</b>(1); 
Most of the information within the documentation should
<i>not</i>
be edited.  This includes the type name (<i>/Type/@FullName</i>), implemented
interfaces (<i>/Type/Interfaces</i>), member information 
(<i>/Type/Members/Member/@MemberName</i>,
<i>/Type/Members/Member/MemberSignature</i>,
<i>/Type/Members/Member/MemberType</i>, 
<i>/Type/Members/Member/Parameters</i>, etc.).

</p><pre>

    &lt;Type Name="DocAttribute" FullName="Mono.DocTest.DocAttribute"&gt;
      &lt;TypeSignature Language="C#" Value="public class DocAttribute : Attribute" /&gt;
      &lt;AssemblyInfo&gt;
        &lt;AssemblyName&gt;DocTest&lt;/AssemblyName&gt;
        &lt;AssemblyVersion&gt;0.0.0.0&lt;/AssemblyVersion&gt;
      &lt;/AssemblyInfo&gt;
      &lt;Base&gt;
        &lt;BaseTypeName&gt;System.Attribute&lt;/BaseTypeName&gt;
      &lt;/Base&gt;
      &lt;Interfaces /&gt;
      &lt;Attributes&gt;
        &lt;Attribute&gt;
          &lt;AttributeName&gt;System.AttributeUsage(System.AttributeTargets.All)&lt;/AttributeName&gt;
        &lt;/Attribute&gt;
      &lt;/Attributes&gt;
      &lt;Docs&gt;
        &lt;summary&gt;To be added.&lt;/summary&gt;
        &lt;remarks&gt;To be added.&lt;/remarks&gt;
      &lt;/Docs&gt;
      &lt;Members&gt;
        &lt;Member MemberName=".ctor"&gt;
          &lt;MemberSignature Language="C#" Value="public DocAttribute (string docs);" /&gt;
          &lt;MemberType&gt;Constructor&lt;/MemberType&gt;
          &lt;AssemblyInfo&gt;
            &lt;AssemblyVersion&gt;0.0.0.0&lt;/AssemblyVersion&gt;
          &lt;/AssemblyInfo&gt;
          &lt;Parameters&gt;
            &lt;Parameter Name="docs" Type="System.String" /&gt;
          &lt;/Parameters&gt;
          &lt;Docs&gt;
            &lt;param name="docs"&gt;To be added.&lt;/param&gt;
            &lt;summary&gt;To be added.&lt;/summary&gt;
            &lt;remarks&gt;To be added.&lt;/remarks&gt;
          &lt;/Docs&gt;
        &lt;/Member&gt;
      &lt;/Members&gt;
    &lt;/Type&gt;
</pre>

The only elements that normally need to be edited are children of the 
<i>//Docs</i> elements, which usually contain the text 
<i>To be added.</i>
The <i>/Type/Docs</i> element contains type-level documentation, while the
<i>/Type/Members/Member/Docs</i> element contains per-member documentation.
<p>
The <i>//Docs</i> elements can contain the following elements: 
<i>altcompliant</i>,
<i>altmember</i>,
<i>example</i>,
<i>exception</i>,
<i>param</i>,
<i>permission</i>,
<i>remarks</i>,
<i>returns</i>,
<i>since</i>,
<i>summary</i>,
<i>threadsafe</i>,
<i>typeparam</i>, and
<i>value</i>.
</p><p>
Nested types are not members; they are types, and are documented in their own
file.  Consequently, the <i>NamespaceName/TypeName.xml</i> files are not
recursive; you do not store a <i>&lt;Type/&gt;</i> element within a <i>&lt;Type/&gt;</i>
element.
<h3><b>Documentation XML Elements</b></h3>
The contents of the <i>Docs</i> element is <i>identical</i>
in semantics and structure to the inline C# documentation format, consisting
of these elements (listed in ECMA-334 3rd Edition, Annex E, Section 2).  The
following are used within the element descriptions:
</p><dl><dt>
<i>CREF</i></dt><dd>
Refers to a class (or member) reference, and is a string in the format
described below in the <b>CREF FORMAT</b> section.
</dd><dt>
<i>TEXT</i></dt><dd>
Non-XML text, and XML should not be nested.
<i></i>
</dd><dt>
<i>XML</i></dt><dd>
Only XML elements should be nested (which indirectly may contain text), but
non-whitespace text should not be an immediate child node.
</dd><dt>
<i>XML_TEXT</i></dt><dd>
Free-form text and XML, so that other XML elements may be nested.
</dd></dl><p>
The following elements are used in documentation:
</p><dl><dt>
<i>&lt;altmember cref="CREF" /&gt;</i></dt><dd>
<i>&lt;altmember/&gt;</i>
is a top-level element, and should be nested directly under the 
<i>&lt;Docs/&gt;</i>
element.
<p>
Allows an entry to be generated for the <i>See Also</i> section.  Use 
<i>&lt;see/&gt;</i> to specify a link from within text.

</p><pre>

    &lt;altmember cref="P:System.Exception.Message" /&gt;
</pre>
</dd><dt>
<i>&lt;block subset="SUBSET" type="TYPE"&gt;XML_TEXT&lt;/block&gt;</i></dt><dd>
Create a block of text, similar in concept to a paragraph, but is used to
create divisions within the text.  To some extent, a &lt;block/&gt; is equivalent to
the HTML &lt;h2/&gt; tag.
<p>
<i>SUBSET</i>
should always be the value <i>"none"</i>.
</p><p>
<i>TYPE</i>
specifies the heading and formatting to use.  Recognized types are:
</p><p>
<i>behaviors</i>
Creates a section with the heading <i>Operation</i>.
</p><p>
<i>note</i>
Creates a section with the heading <i>Note:</i>.
</p><p>
<i>overrides</i>
Creates a section with the heading <i>Note to Inheritors</i>.
</p><p>
<i>usage</i>
Creates a section with the heading <i>Usage</i>.
</p><p>
The <i>block</i> element can contain the following elements: 
<i>block</i>,
<i>c</i>,
<i>code</i>,
<i>list</i>,
<i>para</i>,
<i>paramref</i>,
<i>see</i>,
<i>subscript</i>,
<i>sup</i>, and
<i>typeparamref</i>.
</p></dd><dt>
<i>&lt;c&gt;XML_TEXT&lt;/c&gt;</i></dt><dd>
Set text in a code-like font (similar to the HTML &lt;tt/&gt; element).
<p>
The <i>c</i> element can contain the following elements: 
<i>code</i>,
<i>para</i>,
<i>paramref</i>,
<i>see</i>, and
<i>typeparamref</i>.
</p></dd><dt>
<i>&lt;code lang="LANGUAGE"&gt;TEXT&lt;/code&gt;</i></dt><dd>
Display multiple lines of text in a code-like font (similar to the HTML &lt;pre/&gt;
element).
<i>LANGUAGE</i>
is the language this code block is for.  For example, if <i>LANGUAGE</i> is
<b>C#</b>, then <i>TEXT</i> will get syntax highlighting for the C# language 
within the Mono Documentation Browser.
</dd><dt>
<i>&lt;example&gt;XML_TEXT&lt;/example&gt;</i></dt><dd>
Indicates an example that should be displayed specially.  For example:

<pre>

    &lt;example&gt;
      &lt;para&gt;An introductory paragraph.&lt;/para&gt;
      &lt;code lang="C#"&gt;
        class Example {
          public static void Main ()
          {
            System.Console.WriteLine ("Hello, World!");
          }
        }
      &lt;/code&gt;
    &lt;/example&gt;
</pre>

The <i>example</i> element can contain the following elements:
<i>c</i>,
<i>code</i>,
<i>list</i>,
<i>para</i>, and
<i>see</i>.
</dd><dt>
<i>&lt;exception cref="CREF"&gt;XML_TEXT&lt;/exception&gt;</i></dt><dd>
Identifies an exception that can be thrown by the documented member.
<p>
<i>&lt;exception/&gt;</i>
is a top-level element, and should be nested directly under the 
<i>&lt;Docs/&gt;</i>
element.
</p><p>
<i>CREF</i>
is the exception type that is thrown, while
<i>XML_TEXT</i>
contains the circumstances that would cause 
<i>CREF</i>
to be thrown.

</p><pre>

    &lt;exception cref="T:System.ArgumentNullException"&gt;
      &lt;paramref name="foo" /&gt; was &lt;see langword="null" /&gt;.
    &lt;/exception&gt;
</pre>

The <i>exception</i> element can contain the following elements:
<i>block</i>,
<i>para</i>,
<i>paramref</i>,
<i>see</i>, and
<i>typeparamref</i>.
</dd><dt>
<i>&lt;list&gt;XML&lt;/list&gt;</i></dt><dd>
Create a list or table of items.  
<i>&lt;list/&gt;</i>
makes use of nested <i>&lt;item&gt;XML&lt;/item&gt;</i>, <i>&lt;listheader&gt;XML&lt;/listheader&gt;</i>,
<i>&lt;term&gt;XML_TEXT&lt;/term&gt;</i>, and <i>&lt;description&gt;XML_TEXT&lt;/description&gt;</i>
elements.
<p>
<i>Lists</i> have the syntax:

</p><pre>

    &lt;list type="bullet"&gt; &lt;!-- or type="number" --&gt;
      &lt;item&gt;&lt;term&gt;Bullet 1&lt;/term&gt;&lt;/item&gt;
      &lt;item&gt;&lt;term&gt;Bullet 2&lt;/term&gt;&lt;/item&gt;
      &lt;item&gt;&lt;term&gt;Bullet 3&lt;/term&gt;&lt;/item&gt;
    &lt;/list&gt;
</pre>
<p>
<i>Tables</i>
have the syntax:

</p><pre>

    &lt;list type="table"&gt;
      &lt;listheader&gt; &lt;!-- listheader bolds this row --&gt;
        &lt;term&gt;Column 1&lt;/term&gt;
        &lt;description&gt;Column 2&lt;/description&gt;
        &lt;description&gt;Column 3&lt;/description&gt;
      &lt;/listheader&gt;
      &lt;item&gt;
        &lt;term&gt;Item 1-A&lt;/term&gt;
        &lt;description&gt;Item 1-B&lt;/description&gt;
        &lt;description&gt;Item 1-C&lt;/description&gt;
      &lt;/item&gt;
      &lt;item&gt;
        &lt;term&gt;Item 2-A&lt;/term&gt;
        &lt;description&gt;Item 2-B&lt;/description&gt;
        &lt;description&gt;Item 2-C&lt;/description&gt;
      &lt;/item&gt;
    &lt;/list&gt;
</pre>

The <i>item</i> and <i>description</i> elements can each contain text and 
the following elements: 
<i>block</i>,
<i>c</i>,
<i>para</i>,
<i>paramref</i>,
<i>see</i>,
<i>sup</i>, and
<i>typeparamref</i>.
</dd><dt>
<i>&lt;para&gt;XML_TEXT&lt;/para&gt;</i></dt><dd>
Insert a paragraph of <i>XML_TEXT</i>.
For example,

<pre>

    &lt;para&gt;
      This is a paragraph of text.
    &lt;/para&gt;
</pre>

The <i>para</i> element can contain the following elements:
<i>block</i>,
<i>c</i>,
<i>example</i>,
<i>link</i>,
<i>list</i>,
<i>onequarter</i>,
<i>paramref</i>,
<i>see</i>,
<i>sub</i>,
<i>sup</i>,
<i>typeparamref</i>, and
<i>ul</i>.
</dd><dt>
<i>&lt;param name="NAME"&gt;XML_TEXT&lt;/param&gt;</i></dt><dd>
<i>&lt;param/&gt;</i>
is a top-level element, and should be nested directly under the 
<i>&lt;Docs/&gt;</i>
element.
<p>
Describes the parameter <i>NAME</i> of the current constructor, method, or 
property:

</p><pre>

    &lt;param name="count"&gt;
      A &lt;see cref="T:System.Int32" /&gt; containing the number
      of widgets to process.
    &lt;/param&gt;
</pre>


The <i>param</i> element can contain the following elements:
<i>block</i>,
<i>c</i>,
<i>example</i>,
<i>para</i>,
<i>paramref</i>,
<i>see</i>, and
<i>typeparamref</i>.
</dd><dt>
<i>&lt;paramref name="NAME" /&gt;</i></dt><dd>
Indicates that <i>NAME</i> is a parameter.
<p>
This usually renders <i>NAME</i> as italic text, so it is frequently 
(ab)used as an equivalent to the HTML &lt;i/&gt; element.  See the 
<i>&lt;exception/&gt;</i> documentation (above) for an example.
</p><p>
</p></dd><dt>
<i>&lt;permission cref="CREF"&gt;XML_TEXT&lt;/permission&gt;</i></dt><dd>
Documents the security accessibility requirements of the current member.
<p>
<i>&lt;permission/&gt;</i>
is a top-level element, and should be nested directly under the 
<i>&lt;Docs/&gt;</i>
element.
</p><p>
<i>CREF</i> is a type reference to the security permission required, while
<i>XML_TEXT</i> is a description of why the permission is required.

</p><pre>

    &lt;permission cref="T:System.Security.Permissions.FileIOPermission"&gt;
      Requires permission for reading and writing files. See 
      &lt;see cref="F:System.Security.Permissions.FileIOPermissionAccess.Read" /&gt;, 
      &lt;see cref="F:System.Security.Permissions.FileIOPermissionAccess.Write" /&gt;.
    &lt;/permission&gt;
</pre>

The <i>permission</i> element can contain the following elements:
<i>block</i>,
<i>para</i>,
<i>paramref</i>,
<i>see</i>, and
<i>typeparamref</i>.
</dd><dt>
<i>&lt;remarks&gt;XML_TEXT&lt;/remarks&gt;</i></dt><dd>
Contains detailed information about a member.
<p>
<i>&lt;remarks/&gt;</i>
is a top-level element, and should be nested directly under the 
<i>&lt;Docs/&gt;</i>
element.

</p><pre>

    &lt;remarks&gt;
      Insert detailed information here.
    &lt;/remarks&gt;
</pre>

The <i>remarks</i> element can contain the following elements:
<i>block</i>,
<i>c</i>,
<i>code</i>,
<i>example</i>,
<i>list</i>,
<i>para</i>,
<i>paramref</i>,
<i>see</i>, and
<i>typeparamref</i>.
</dd><dt>
<i>&lt;returns&gt;XML_TEXT&lt;/returns&gt;</i></dt><dd>
<p>
<i>&lt;returns/&gt;</i>
is a top-level element, and should be nested directly under the 
<i>&lt;Docs/&gt;</i>
element.
</p><p>
Describes the return value of a method:

</p><pre>

    &lt;returns&gt;
      A &lt;see cref="T:System.Boolean" /&gt; specifying whether 
      or not the process can access 
      &lt;see cref="P:Mono.Unix.UnixFileSystemInfo.FullName" /&gt;.
    &lt;/returns&gt;
</pre>

The <i>returns</i> element can contain the following elements:
<i>list</i>,
<i>para</i>,
<i>paramref</i>,
<i>see</i>, and
<i>typeparamref</i>.
</dd><dt>
<i>&lt;see cref="CREF" /&gt;</i>, <i>&lt;see langword="LANGWORD" /&gt;</i></dt><dd>
Creates a link to the specified member within the current text:

<pre>

    &lt;see cref="M:Some.Namespace.With.Type.Method" /&gt;
</pre>

or specifies that <i>LANGWORD</i> is a language keyword:

<pre>

    &lt;see langword="null" /&gt;
</pre>

</dd><dt>
<i>&lt;seealso cref="CREF" /&gt;</i></dt><dd>
Do not use <i>seealso</i>, use <i>altmember</i>.
</dd><dt>
<i>&lt;since version="VERSION" /&gt;</i></dt><dd>
<p>
<i>&lt;since/&gt;</i>
is a top-level element, and should be nested directly under the 
<i>&lt;Docs/&gt;</i> element.
</p><p>
Permits specification of which version introduced the specified type or
member.

</p><pre>

    &lt;since version="Gtk# 2.4" /&gt;
</pre>

This generally isn't required, as the <i>//AssemblyInfo/AssemblyVersion</i>
elements track which assembly versions contain type or member.
</dd><dt>
<i>&lt;summary&gt;XML_TEXT&lt;/summary&gt;</i></dt><dd>
<p>
<i>&lt;summary/&gt;</i>
is a top-level element, and should be nested directly under the 
<i>&lt;Docs/&gt;</i>
element.
</p><p>
Provides a (brief!) overview about a type or type member.
</p><p>
This is usually displayed as part of a class declaration, and should be a
reasonably short description of the type/member.  Use
<i>&lt;remarks/&gt;</i>
for more detailed information.
</p><p>
The <i>summary</i> element can contain the following elements:
<i>block</i>,
<i>list</i>,
<i>para</i>,
<i>paramref</i>,
<i>see</i>, and
<i>typeparamref</i>.
</p></dd><dt>
<i>&lt;typeparam name="NAME"&gt;XML_TEXT&lt;/typeparam&gt;</i></dt><dd>
<i>&lt;typeparam/&gt;</i>
is a top-level element, and should be nested directly under the 
<i>&lt;Docs/&gt;</i>
element.
<p>
This is used to document a type parameter for a generic type or generic method.
</p><p>
<i>NAME</i>
is the name of the type parameter, while
<i>XML_TEXT</i>
contains a description of the parameter (what it's used for, what restrictions
it must meet, etc.).

</p><pre>

    &lt;typeparam name="T"&gt;
      The type of the underlying collection
    &lt;/typeparam&gt;
</pre>

The <i>typeparam</i> element can contain the following elements:
<i>block</i>,
<i>c</i>,
<i>para</i>,
<i>paramref</i>,
<i>see</i>, and
<i>typeparamref</i>.
</dd><dt>
<i>&lt;typeparamref name="NAME"&gt;</i></dt><dd>
Used to indicate that <i>NAME</i> is a type parameter.
</dd><dt>
<i>&lt;value&gt;XML_TEXT&lt;/value&gt;</i></dt><dd>
<i>&lt;value/&gt;</i>
is a top-level element, and should be nested directly under the 
<i>&lt;Docs/&gt;</i>
element.
<p>
Allows a property to be described.

</p><pre>

    &lt;value&gt;
      A &lt;see cref="T:System.String" /&gt; containing a widget name.
    &lt;/value&gt;
</pre>

The <i>value</i> element can contain the following elements:
<i>block</i>,
<i>c</i>,
<i>example</i>,
<i>list</i>,
<i>para</i>,
<i>paramref</i>,
<i>see</i>, and
<i>typeparamref</i>.
</dd></dl><p>
</p></blockquote><h2>CREF FORMAT</h2><blockquote>
String IDs (<i>CREF</i>s) are used to refer to a type or member of a type.  
String IDs are documented in ECMA-334 3rd Edition, Annex E.3.1.  They consist 
of a <i>member type prefix</i>, the full type name (namespace + name, separated 
by <i>.</i>), possibly followed by the member name and other information.
<p>
Member type prefixes:
</p><dl><dt>
<i>C:</i></dt><dd>
The CREF refers to a constructor.  The (optional) parameter list is
enclosed in parenthesis and follows the type name:
<i>C:System.String(System.Char,System.Int32)</i>.
</dd><dt>
<i>E:</i></dt><dd>
The CREF refers to an event.  The event name follows the type name:
<i>E:System.AppDomain.AssemblyLoad</i>.
</dd><dt>
<i>F:</i></dt><dd>
The CREF refers to a field.  The field name follows the type name:
<i>F:System.Runtime.InteropServices.DllImportAttribute.SetLastError</i>.
</dd><dt>
<i>M:</i></dt><dd>
Refers to a constructor or method.  Constructors may append 
<i>.ctor</i>
to the type name (instead of using the above
<i>C:</i>
constructor format), while methods append the method name and an (optional)
count of the number of generic parameters.  Both constructors and methods 
may append the method parameter list enclosed in parenthesis.
<p>
Examples: 
<i>M:System.Object..ctor</i>,
<i>M:System.String..ctor(System.Char[])</i>,
<i>M:System.String.Concat(System.Object)</i>,
<i>M:System.Array.Sort``1(``0[])</i>,
<i>M:System.Collections.Generic.List`1..ctor</i>,
<i>M:System.Collections.Generic.List`1.Add(`0)</i>.
</p></dd><dt>
<i>N:</i></dt><dd>
Refers to a namespace, e.g. <i>N:System</i>.
</dd><dt>
<i>P:</i></dt><dd>
Refers to a property.  If the property is an indexer or takes parameters, 
the parameter types are appended to the property name and enclosed with
paranthesis:
<i>P:System.String.Length</i>,
<i>P:System.String.Chars(System.Int32)</i>.
</dd><dt>
<i>T:</i></dt><dd>
The CREF refers to a type, with the number of generic types appended:
<i>T:System.String</i>,
<i>T:System.Collections.Generic.List`1</i>,
<i>T:System.Collections.Generic.List`1.Enumerator</i>.
</dd></dl><p>
To make matters more interesting, generic types &amp; members have two
representations: the "unbound" representation (shown in examples above), in
which class names have the count of generic parameters appended to their name.
There is also a "bound" representation, in which the binding of generic
parameters is listed within '{' and '}' or '&lt;' and '&gt;'.
(Use of '&lt;' and '&gt;' is less common, as within an XML document their escaped
character entities must instead be used, leading to '&amp;lt;' and '&amp;gt;'.)
</p><p>
<b>Unbound:</b>
</p><dl><dt>
<b>*</b></dt><dd>
<i>T:System.Collections.Generic.List`1</i>
</dd><dt>
<b>*</b></dt><dd>
<i>T:System.Collections.Generic.Dictionary`2</i>
</dd></dl><p>
<b>Bound:</b>
</p><dl><dt>
<b>*</b></dt><dd>
<i>T:System.Collections.Generic.List{System.Int32}</i>
</dd><dt>
<b>*</b></dt><dd>
<i>T:System.Collections.Generic.List&lt;System.Int32&gt;</i>
</dd><dt>
<b>*</b></dt><dd>
<i>T:System.Collections.Generic.List&amp;lt;System.Int32&amp;gt;</i>
</dd><dt>
<b>*</b></dt><dd>
<i>T:System.Predicate{System.Action{System.String}}</i>
</dd></dl><p>
As you can see, bound variants can be arbitrarily complex (just like
generics).
</p><p>
Furthermore, if a generic parameter is bound to the generic parameter of a
type or method, the "index" of the type/method's generic parameter is used 
as the binding, so given

</p><pre>

    class FooType {
      public static void Foo&lt;T&gt; (System.Predicate&lt;T&gt; predicate)
      {
      }
    }
</pre>

The CREF for this method is
<i>M:FooType.Foo``1(System.Predicate{``0})</i>,
<i>``0</i>
is the 0th generic parameter index which is bound to 
<i>System.Predicate&lt;T&gt;</i>.
</blockquote><h2>SEE ALSO</h2><blockquote>
mdoc(1), monodocer(1)
</blockquote><h2>MAILING LISTS</h2><blockquote>
<dl><dt>
Visit http://lists.ximian.com/mailman/listinfo/mono-docs-list for details.</dt><dd>
</dd></dl></blockquote><h2>WEB SITE</h2><blockquote>
Visit http://www.mono-project.com for details

